package com.xy.mapper;

import com.xy.entity.Test;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TestMapper {

    @Insert("insert into test(id,name) values(#{test.id},#{test.name})")
    void insert(@Param("test") Test test);
}
